<%@page import="com.meila.cms.util.config.Property"%>
<%@ taglib  prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"  %> 
<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
 
 String path = request.getContextPath();
 String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>
    <link href="<%=basePath %>/resources/js/mybootstrap/css/bootstrap.min.css" rel="stylesheet">
	<link href="<%=basePath %>/resources/font-awesome-4.5.0/css/font-awesome.min.css" rel="stylesheet">
	
    <script src="<%=basePath %>/resources/js/jquery/1.12.4/jquery.min.js"></script>
    <script src="<%=basePath %>/resources/js/jquery/1.12.4/jquery-migrate-1.2.1.js" type=text/javascript></script> 
    
    	
  	<link  href="<%=basePath %>/resources/js/showloading/showLoading.css" rel="stylesheet" media="screen" /> 
	<script src="<%=basePath %>/resources/js/showloading/jquery.showLoading.js"></script>
    <script src="<%=basePath %>/resources/js/json2-min.js"></script>
    <script src="<%=basePath %>/resources/js/form.js"></script>    
    <script src="<%=basePath %>/resources/js/mathutil.js"></script>    
    <script src="<%=basePath %>/resources/js/baiduTemplate.js"></script> 
    <script src="<%=basePath %>/resources/js/ajaxfileupload.js"></script>     
    <script src="<%=basePath %>/resources/js/mybootstrap/js/bootstrap.min.js" type=text/javascript></script> 
         		 

    
    <link  href="<%=basePath %>/resources/js/dialog/jquery.alerts.css" media=screen  type=text/css rel=stylesheet>
	<script src="<%=basePath %>/resources/js/dialog/jquery.ui.draggable.js" type=text/javascript></script>
	<script src="<%=basePath %>/resources/js/dialog/jquery.alerts.js"></script>
    <script src="<%=basePath %>/resources/js/commonutil.js"></script>
    <script src="<%=basePath %>/resources/js/bignumber.min.js"></script>
    
    
<%--     <script src="<%=basePath %>/resources/js/jquery-ui-1.12.0.custom/jquery-ui.min.js"></script>
    <link  href="<%=basePath %>/resources/js/jquery-ui-1.12.0.custom/jquery-ui.min.css"/> --%>
    
    
    <script type="text/javascript">
        var FILESERVER_PATH = '<%=Property.getProperty("FILESERVER_PATH") %>';
		var FILESERVER_PATH_DOWN = '<%=Property.getProperty("FILESERVER_PATH_DOWN") %>';
		var FILESERVER_UPLOAD_PATH = '<%=Property.getProperty("FILESERVER_UPLOAD_PATH") %>';
		var FILESERVER_ID = '<%=Property.getProperty("FILESERVER_ID") %>';
		var ADMIN_PHONE = '<%=Property.getProperty("ADMIN_PHONE") %>';
        var CONTEXT_PATH = '<%=basePath %>';
        //ajax完成时回调函数
		$(document).ajaxComplete(function(event, xhr, settings) {
		    //从http头信息取出 在filter定义的sessionstatus，判断是否是 timeout
		    if(xhr.getResponseHeader!=null){
		    
		       if( xhr.getResponseHeader("sessionstatus")=="timeout"){ 
			        //从http头信息取出登录的url ＝ loginPath
			        if(xhr.getResponseHeader("loginPath")){
			             jAlert("会话过期，请重新登陆!","提示",function(){
				             //打会到登录页面
				             window.location.replace(xhr.getResponseHeader("loginPath"));  
			             }); 
			            
			        }else{  
			            jAlert("请求超时请重新登陆 !","提示");
			        }  
		       }  
		    
		    }

		}); 
    </script>

         <base href="<%=basePath%>">
